package chapter04;

public class User {
    String userName;

    String password;

    //登录 方法 验证方法
    public boolean login(String userNameParam,String passwordParam){
        System.out.println("用户名:" + userNameParam);
        System.out.println("密码:" + passwordParam);

        if(userNameParam.equals("admin") && passwordParam.equals("111111")) {
            return true;
        }else {
            return  false;




        }


    }


}
